package com.encryption.feature.user.ui.render
{
	import com.encryption.feature.user.ui.UserInfoViewPanel;
	
	import flash.events.MouseEvent;
	
	import mx.core.FlexGlobals;
	import mx.core.UIComponent;
	import mx.managers.PopUpManager;
	
	public class UserViewOperationLabel extends UserOperationLabel
	{
		private var _userInfoViewPanel:UserInfoViewPanel;
		
		public function UserViewOperationLabel()
		{
			super();
			
			text = "查看";
		}
		
		override protected function mouseClickHandle(event:MouseEvent):void
		{
			if(_userInfoViewPanel == null)
				_userInfoViewPanel = new UserInfoViewPanel();
			
			_userInfoViewPanel.user = user;
			
			PopUpManager.addPopUp(_userInfoViewPanel, FlexGlobals.topLevelApplication as UIComponent);
			PopUpManager.centerPopUp(_userInfoViewPanel);
		}
	}
}